public class Duck extends Animal implements IFly,IRunning,ISwimming{
    public Duck(String name){
        super(name);
    }

    @Override
    public void fly() {
        System.out.println(this.name+"会飞");
    }

    @Override
    public void run() {
        System.out.println(this.name+"会跑");
    }

    @Override
    public void swim() {
        System.out.println(this.name+"会游泳");
    }
}
